//
//  XYNetworkStatusHelper.h
//  PeiJue
//
//  Created by lxy on 2017/12/6.
//  Copyright © 2017年 lixiya. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

typedef NS_ENUM(NSInteger ,NetworkStatus) {
    StatusUnknown           = -1, //未知网络
    StatusNotReachable      = 0,    //没有网络
    StatusReachableViaWWAN  = 1,    //手机自带网络
    StatusReachableViaWiFi  = 2     //wifi
    
};

@interface XYNetworkStatusHelper : NSObject

@property(nonatomic ,assign) NetworkStatus networkStats;

+ (XYNetworkStatusHelper *)sharedInstance;
- (void)startMonitoring;

@end
